home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / DarkRoom / gtk-2.0 / gtkrc
Encoding:
Text File  |  2009-03-30  |  14.1 KB  |  437 lines

  1. # Ubuntu DarkRoom Colorscheme
  2. #
  3. # Authors:
  4. # Kenneth Wimer <kwwii@ubuntu.com>
  5. # Conn O'Griofa <connogriofa@gmail.com>
  6. #
  7. # Feel free to modify and share!
  8.  
  9. gtk_color_scheme = "fg_color:#EBE0CE\nbg_color:#4C4039\nbase_color:#FFF\ntext_color:#140D0A\nselected_bg_color:#D78E49\nselected_fg_color:#FFF\ntooltip_bg_color:#473D37\ntooltip_fg_color:#FFF"
  10.  
  11. style "murrine-default"
  12. {
  13.     ########
  14.     # Style Properties
  15.     ########
  16.     GtkButton      ::child-displacement-x = 1
  17.     GtkButton      ::child-displacement-y = 1
  18.     GtkButton      ::default-border       = { 0, 0, 0, 0 }
  19.     GtkCheckButton ::indicator-size       = 14
  20.  
  21.     GtkPaned       ::handle-size          = 6
  22.  
  23.     GtkRange       ::trough-border        = 0
  24.     GtkRange       ::slider-width         = 15
  25.     GtkRange       ::stepper-size         = 15
  26.  
  27.     GtkScale       ::slider-length        = 20
  28.     GtkScale       ::trough-side-details  = 0           # 0 = thin slider, >0 = thick slider
  29.     GtkScrollbar   ::min-slider-length    = 30
  30.  
  31.     GtkMenuBar     ::internal-padding     = 0
  32.     GtkExpander    ::expander-size        = 16
  33.     GtkToolbar     ::internal-padding     = 1
  34.     GtkTreeView    ::expander-size        = 14
  35.     GtkTreeView    ::vertical-separator   = 0
  36.  
  37.     GtkMenu        ::horizontal-padding   = 0
  38.     GtkMenu        ::vertical-padding     = 0
  39.  
  40.     # Glow the tasklist by changing the color, instead of overlaying it with a rectangle
  41.     #WnckTasklist   ::fade-overlay-rect    = 0
  42.  
  43.     GtkToolbar     :: shadow-type           = GTK_SHADOW_NONE
  44.         GtkMenuBar     :: shadow-type          = GTK_SHADOW_NONE
  45.  
  46.     GtkWidget      :: link-color           = @fg_color
  47.     GtkWidget      :: visited-link-color   = shade (0.2, @fg_color)
  48.  
  49.     xthickness = 1
  50.     ythickness = 1
  51.  
  52.     fg[NORMAL]        = @fg_color             # Metacity and mouseover, Most text
  53.     fg[PRELIGHT]      = @fg_color               # Text when mouseover
  54.     fg[ACTIVE]        = @fg_color               # Text when mouseclicking button, Tabs, Active window list
  55.     fg[SELECTED]      = @selected_fg_color      # Metacity X when window selected
  56.     fg[INSENSITIVE]   = shade (0.17, @fg_color) # Insensitive Text
  57.  
  58.     bg[NORMAL]        = @bg_color               # Normal Background, inactive Metacity bar, buttons
  59.     bg[PRELIGHT]      = shade (1.15, @bg_color) # Mouseover buttons
  60.     bg[ACTIVE]        = shade (0.77, @bg_color) # Mouseclicking, Tabs, active window list
  61.     bg[SELECTED]      = @selected_bg_color      # Metacity Bar
  62.     bg[INSENSITIVE]   = @bg_color               # Insensitive buttons
  63.  
  64.     base[NORMAL]      = @base_color             # Background, most
  65.     base[PRELIGHT]    = shade (0.95, @bg_color) # Mouseover menu
  66.     base[ACTIVE]      = @selected_bg_color      # Menu active item in inactive window
  67.     base[SELECTED]    = @selected_bg_color      # Menu active item in active window
  68.     base[INSENSITIVE] = @bg_color               # Background, insensitive
  69.  
  70.     text[NORMAL]      = @text_color             # Text in window
  71.     text[PRELIGHT]    = @text_color             # Text on Mouseover
  72.     text[ACTIVE]      = @selected_fg_color        # Active text in inactive window
  73.     text[SELECTED]    = @selected_fg_color      # Active text in active window
  74.     text[INSENSITIVE] = shade (0.17, @fg_color) # Insensitive text
  75.  
  76.     engine "murrine" 
  77.     {
  78.         animation           = FALSE  # FALSE = disabled, TRUE = enabled
  79.         colorize_scrollbar  = TRUE # FALSE = disabled, TRUE = enabled
  80.         contrast            = 1.07  # 0.8 for less contrast, more than 1.0 for more contrast on borders
  81.         glazestyle          = 3     # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
  82.         gradient_shades     = {1.20,1.05,1.20,1.02} # default: {1.1,1.0,1.0,1.1}
  83.         gradients           = TRUE  # FALSE = disabled, TRUE = enabled
  84.         highlight_shade     = 1.06  # set highlight amount for buttons or widgets
  85.         lightborder_shade   = 1.2   # sets lightborder amount for buttons or widgets
  86.         lightborderstyle    = 0     # 0 = lightborder on top side, 1 = lightborder on all sides
  87.         listviewheaderstyle = 1     # 0 = flat, 1 = glassy, 2 = raised
  88.         listviewstyle       = 1     # 0 = nothing, 1 = dotted
  89.         menubaritemstyle    = 1     # 0 = menuitem look, 1 = button look
  90.         menubarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
  91.         menuitemstyle       = 1     # 0 = flat, 1 = glassy, 2 = striped
  92.         menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
  93.         reliefstyle        = 2     # 0 = flat, 1 = inset, 2 = shadow
  94.         rgba            = TRUE  # FALSE = disabled, TRUE = enabled
  95.         roundness           = 2     # 0 = squared, 1 = old default, more will increase roundness
  96.         scrollbarstyle      = 2     # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
  97.         sliderstyle         = 1     # 0 = nothing added, 1 = handles
  98.         stepperstyle        = 0     # 0 = standard, 1 = integrated stepper handles, 2 = unknown
  99. #        style            = MURRINE # engine style options: CANDIDO, CLEARLOOKS, MIST, MURRINE, NODOKA
  100.         toolbarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient
  101.     }
  102. }
  103.  
  104. style "murrine-wide"
  105. {
  106.     xthickness = 2
  107.     ythickness = 2
  108. }
  109.  
  110. style "murrine-wider"
  111. {
  112.     xthickness = 3
  113.     ythickness = 3
  114. }
  115.  
  116. style "murrine-button" = "murrine-wider"
  117. {
  118.     bg[NORMAL]      = shade (0.95, @bg_color)
  119.     bg[INSENSITIVE] = shade (0.97, @bg_color)
  120.  
  121. }
  122.  
  123. style "murrine-notebook"
  124. {
  125.     bg[NORMAL]   = shade (1.08, @bg_color)
  126.     bg[ACTIVE]   = shade (0.75, @bg_color)
  127. }
  128.  
  129. style "murrine-tasklist" = "murrine-wide"
  130. {
  131. }
  132.  
  133. style "murrine-menu" = "murrine-wider"
  134. {
  135.     bg[NORMAL] = shade (1.15, @bg_color)
  136. }
  137.  
  138. style "murrine-menubar"
  139. {
  140.     #bg[NORMAL]= shade (0.85, @bg_color) # dark menu bg
  141. }
  142.  
  143. style "murrine-menu-item" = "murrine-wider"
  144. {
  145.     bg[PRELIGHT] = shade (1.15, @bg_color) #should match bg[NORMAL] of "murrine-menu"
  146.     #bg[SELECTED] = shade (1.15, @bg_color)
  147.     fg[PRELIGHT] = @selected_fg_color
  148.  
  149.     engine "murrine" 
  150.     {
  151.         highlight_shade = 1.03
  152.         roundness = 3
  153.     }
  154. }
  155.  
  156. style "murrine-separator-menu-item"
  157. {
  158. }
  159.  
  160. style "murrine-treeview"
  161. {
  162.     bg[NORMAL]   = shade (1.5, @bg_color)
  163.     fg[NORMAL]   = shade (0.5, @bg_color)
  164.     fg[PRELIGHT] = shade (0.5, @bg_color)
  165. }
  166.  
  167. style "murrine-treeview-header" = "murrine-default"
  168. {
  169.     bg[NORMAL]      = shade (0.95, @bg_color)
  170.     bg[INSENSITIVE] = shade (0.93, @bg_color)
  171. }
  172.  
  173. style "murrine-frame-title"
  174. {
  175.     fg[NORMAL] = lighter (@fg_color)
  176. }
  177.  
  178. style "murrine-tooltips" = "murrine-wider"
  179. {
  180.     bg[NORMAL] = @tooltip_bg_color
  181.     fg[NORMAL] = @tooltip_fg_color
  182. }
  183.  
  184. style "murrine-progressbar"
  185. {
  186.     #xthickness   = 0
  187.     #ythickness   = 0
  188.  
  189.     fg[PRELIGHT] = @selected_fg_color
  190.  
  191.     engine "murrine" 
  192.     {
  193.         contrast = 1.3 # Darken unfilled progressbar background
  194.     }
  195. }
  196.  
  197. style "murrine-statusbar"
  198. {
  199. }
  200.  
  201. style "murrine-comboboxentry"
  202. {
  203. }
  204.  
  205. style "murrine-spinbutton"
  206. {
  207.     bg[NORMAL]      = shade (0.95, @bg_color) # need to fix rectangular border bug on spinbutton
  208.     bg[INSENSITIVE] = shade (0.99, @bg_color)
  209. }
  210.  
  211. style "murrine-scale"
  212. {
  213.     GtkRange        ::slider-width = 13
  214.  
  215.     bg[NORMAL]      = shade (0.95, @bg_color)
  216.     bg[INSENSITIVE] = shade (0.99, @bg_color)
  217.  
  218.     engine "murrine" 
  219.     {
  220.         contrast = 1.4
  221.     }
  222. }
  223.  
  224. style "murrine-hscale"
  225. {
  226. }
  227.  
  228. style "murrine-vscale"
  229. {
  230. }
  231.  
  232. style "murrine-scrollbar"
  233. {
  234.     bg[NORMAL]      = shade (0.95, @bg_color)
  235.     bg[INSENSITIVE] = shade (0.99, @bg_color)
  236.  
  237.     engine "murrine" 
  238.     {
  239.         contrast = 1.8
  240.     }
  241. }
  242.  
  243. style "murrine-hscrollbar"
  244. {
  245. }
  246.  
  247. style "murrine-vscrollbar"
  248. {
  249. }
  250.  
  251. style "murrine-nautilus-location"
  252. {
  253.     bg[NORMAL] = @selected_bg_color
  254. }
  255.  
  256. style "metacity-frame"
  257. {
  258.     bg[NORMAL] = @bg_color
  259. }
  260.  
  261. style "murrine-radiocheck" = "murrine-default"
  262. {
  263.     base[NORMAL]      = @bg_color 
  264.     text[NORMAL]   = @fg_color             # Text in window
  265.     text[PRELIGHT] = @fg_color             # Text on Mouseover
  266.     
  267.     engine "murrine" 
  268.     {
  269.         highlight_shade = 1.0
  270.     }
  271. }
  272.  
  273. style "murrine-panel"
  274. {
  275.     bg[NORMAL]= shade (0.85, @bg_color) # should match bg[NORMAL] of "murrine-menubar"
  276. }
  277.  
  278. #########################################
  279. # Matches
  280. #########################################
  281.  
  282. # Theme radio buttons and checkmarks
  283. class "GtkRadio*"                                style "murrine-radiocheck"
  284. class "GtkCheck*"                                   style "murrine-radiocheck"
  285.  
  286. # Keep proper colour for Metacity
  287. class "MetaFrames"                     style "metacity-frame"
  288. #class "GtkWindow"                            style "metacity-frame"
  289.  
  290. # Theme default style is applied to every widget
  291. class "GtkWidget"                        style "murrine-default"
  292.  
  293. # Increase the x/ythickness in some widgets
  294. class "GtkToolbar"                       style "murrine-default" 
  295. class "GtkRange"                         style "murrine-wide"
  296. class "GtkFrame"                         style "murrine-wide"
  297. class "GtkSeparator"                     style "murrine-wide"
  298. class "GtkEntry"                         style "murrine-wider"
  299.  
  300. class "GtkSpinButton"                      style "murrine-spinbutton"
  301. class "GtkScale"                           style "murrine-scale"
  302. class "GtkVScale"                          style "murrine-vscale"
  303. class "GtkHScale"                          style "murrine-hscale"
  304. class "GtkScrollbar"                       style "murrine-scrollbar"
  305. class "GtkVScrollbar"                      style "murrine-vscrollbar"
  306. class "GtkHScrollbar"                      style "murrine-hscrollbar"
  307.  
  308. # General matching following, the order is choosen so that the right styles override each other
  309. # eg. progressbar needs to be more important then the menu match.
  310.  
  311. # This is not perfect, it could be done better
  312. # (That is modify *every* widget in the notebook, and change those back that
  313. # we really don't want changed)
  314. widget_class "*<GtkNotebook>*<GtkEventBox>"         style "murrine-notebook"
  315. widget_class "*<GtkNotebook>*<GtkDrawingArea>"        style "murrine-notebook"
  316. widget_class "*<GtkNotebook>*<GtkLayout>"           style "murrine-notebook"
  317.  
  318. widget_class "*<GtkButton>"                  style "murrine-button"
  319. widget_class "*<GtkNotebook>"                style "murrine-notebook"
  320. widget_class "*<GtkStatusbar>*"              style "murrine-statusbar"
  321.  
  322. widget_class "*<GtkComboBoxEntry>*"            style "murrine-comboboxentry"
  323. widget_class "*<GtkCombo>*"                     style "murrine-comboboxentry"
  324.  
  325. widget_class "*<GtkMenuBar>*"                   style "murrine-menubar"
  326. widget_class "*<GtkMenu>*"                      style "murrine-menu"
  327. widget_class "*<GtkMenuItem>*"                  style "murrine-menu-item"
  328. widget_class "*<GtkSeparatorMenuItem>*"         style "murrine-separator-menu-item"
  329.  
  330. widget_class "*.<GtkFrame>.<GtkLabel>"             style "murrine-frame-title"
  331. widget_class "*.<GtkTreeView>*"                    style "murrine-treeview"
  332.  
  333. widget_class "*<GtkProgressBar>"                   style "murrine-progressbar"
  334.  
  335. # Treeview header
  336. widget_class "*.<GtkTreeView>.<GtkButton>"         style "murrine-treeview-header"
  337. widget_class "*.<GtkCTree>.<GtkButton>"            style "murrine-treeview-header"
  338. widget_class "*.<GtkList>.<GtkButton>"             style "murrine-treeview-header"
  339. widget_class "*.<GtkCList>.<GtkButton>"            style "murrine-treeview-header"
  340. widget_class "*.<GtkTreeView>*<GtkLabel>*"        style "murrine-treeview-header"         # DARK: ensure GtkTreeView header text is light
  341. widget_class "*.<GtkTreeView>*<GtkArrow>*"        style:highest "murrine-treeview-header" # DARK: ensure GtkArrows are light 
  342.  
  343. # Workarounds for Evolution
  344. widget_class "*.ETable.ECanvas"                style "murrine-treeview-header"
  345. widget_class "*.ETree.ECanvas"                style "murrine-treeview-header"
  346.  
  347. # The window of the tooltip is called "gtk-tooltip"
  348. ################################
  349. # FIXME:
  350. # This will not work if one embeds eg. a button into the tooltip.
  351. # As far as I can tell right now we will need to rework the theme
  352. # quite a bit to get this working correctly.
  353. # (It will involve setting different priorities, etc.)
  354. ################################
  355. widget "gtk-tooltip*"                     style "murrine-tooltips"
  356.  
  357. ###################################################
  358. # Special cases and work arounds
  359. ###################################################
  360.  
  361. # Special case the nautilus-extra-view-widget
  362. # ToDo: A more generic approach for all applications that have a widget like this.
  363. widget "*.nautilus-extra-view-widget"             style : highest "murrine-nautilus-location"
  364.  
  365. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  366. # Note that the work around assumes that the combobox is _not_ in
  367. # appears-as-list mode.
  368. # Similar hack also in the menuitem style.
  369. # This style does not affect GtkComboBoxEntry, it does have an effect
  370. # on comboboxes in appears-as-list mode though.
  371. style "murrine-combobox-text-color-workaround"
  372. {
  373.     text[NORMAL]      = @fg_color
  374.     text[PRELIGHT]    = @fg_color
  375.     text[SELECTED]    = @selected_fg_color
  376.     text[ACTIVE]      = @fg_color
  377.     text[INSENSITIVE] = shade (0.17, @fg_color)
  378. }
  379. widget_class "*.<GtkComboBox>.<GtkCellView>"        style "murrine-combobox-text-color-workaround"
  380.  
  381. style "murrine-menuitem-text-is-fg-color-workaround"
  382. {
  383.     text[NORMAL]        = @fg_color
  384.     text[PRELIGHT]      = @selected_fg_color
  385.     text[SELECTED]      = @selected_fg_color
  386.     text[ACTIVE]        = @fg_color
  387.     text[INSENSITIVE]   = shade (0.17, @fg_color)
  388. }
  389.  
  390. widget "*.gtk-combobox-popup-menu.*"               style "murrine-menuitem-text-is-fg-color-workaround"
  391.  
  392. # Work around the usage of GtkLabel inside GtkListItems to display text.
  393. # This breaks because the label is shown on a background that is based on the
  394. # base color set.
  395. style "murrine-fg-is-text-color-workaround"
  396. {
  397.     fg[NORMAL]      = @text_color
  398.     fg[PRELIGHT]    = @text_color
  399.     fg[ACTIVE]      = @selected_fg_color
  400.     fg[SELECTED]    = @selected_fg_color
  401.     fg[INSENSITIVE] = shade (0.17, @fg_color)
  402. }
  403.  
  404. widget_class "*<GtkListItem>*"                 style "murrine-fg-is-text-color-workaround"
  405.  
  406. # The same problem also exists for GtkCList and GtkCTree
  407. # Only match GtkCList and not the parent widgets, because that would also change the headers.
  408. widget_class "*<GtkCList>"                 style "murrine-fg-is-text-color-workaround"
  409.  
  410. style "murrine-evo-new-button-workaround"
  411. {
  412.  
  413.     engine "murrine"
  414.     {
  415.         toolbarstyle = 0
  416.     }
  417. }
  418.  
  419. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"
  420.  
  421. style "murrine-darker"
  422. {
  423.         fg[NORMAL] = shade (0.1, @fg_color)
  424.         fg[ACTIVE] = shade (0.1, @fg_color) 
  425. }
  426. widget "*auti*IconView*"                        style : highest "murrine-darker"
  427.  
  428. # Theme panel elements
  429. widget "*PanelWidget*"                     style "murrine-panel"
  430. widget "*PanelApplet*"                     style "murrine-panel"
  431. widget "*fast-user-switch*"                style "murrine-panel" # workaround for Fast User Switch applet
  432. class "PanelApp*"                     style "murrine-panel"
  433. class "PanelToplevel*"                     style "murrine-panel"
  434. widget_class "*Mail*"                     style "murrine-panel"
  435. widget_class "*notif*"                     style "murrine-panel"
  436. widget_class "*Notif*"                     style "murrine-panel"
  437.